<template>
  <div class="invoicePreviewBox">
    <div class="tupian"><img src="../../assets/invoice.png" alt=""></div>
    <div class="content">
      <mt-field readonly label="发票抬头">{{invoicePreview.customerName}}</mt-field>
      <mt-field readonly label="税号" >{{invoicePreview.customerTaxNo}}</mt-field>
      <mt-field readonly label="开户银行">{{invoicePreview.customerBankAdress}}</mt-field>
      <mt-field readonly label="银行账号">{{invoicePreview.customerBankNum}}</mt-field>
      <mt-field readonly label="企业地址">{{invoicePreview.customerAddress}}</mt-field>
      <mt-field readonly label="企业电话">{{invoicePreview.customerTelephone}}</mt-field>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      // 发票预览数据
      invoicePreview: null,
      // 发票记录的id
      invoiceId: ''
    }
  },
  created () {
    this.invoicePreview = this.$route.params
    this.invoiceId = this.$route.query.id
    // console.log(this.invoicePreview)
    // console.log(this.invoiceId)
    if (this.invoiceId) {
      // 向后台发送请求，获得 发票预览数据 赋值给 invoicePreview
    }
  },
  methods: {}

}
</script>

<style lang="less" scoped>
  .invoicePreviewBox {
    margin-top: 30px;
    padding: 0 20px;
    .tupian {
      text-align: center;
    }
    /deep/ .mint-cell {
      height: 40px;
      min-height: 40px;
    }
    /deep/ .mint-cell-text {
      color: #000;
    }
    /deep/ input {
      font-size: 13px;
      text-align: right;
    }
    /deep/ .mint-field-other {
      color: #666;
    }
    /deep/ .mint-cell-wrapper {
      font-size: 13px;
      padding: 0;
      background-image: none;
    }

    /deep/ input::-webkit-input-placeholder {
      font-size: 13px;
      color: #CCCCCC;
      text-align: right;
    }
  }
</style>
